package com.dxy.dxycommon.utils;


import com.dxy.dxycommon.VO.ResultVO;

/**
 * Created by junfeng on 2018/10/11.
 */
public class ResultVOUtil {

    public static ResultVO success(){
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(200);
        resultVO.setMessage("成功");
        return resultVO;
    }

    public static ResultVO success(Object Object){
        ResultVO resultVO = new ResultVO();
        resultVO.setData(Object);
        resultVO.setCode(200);
        resultVO.setMessage("成功");
        return resultVO;
    }

    public static ResultVO error(Object Object) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(500);
        resultVO.setMessage(Object.toString());
        return resultVO;
    }


}
